package com.atguigu.jinx.entity.vo;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * Author:VEGA_KUANGQI
 * <p>
 * 2025/8/17
 */
@Data
public class ResetPasswordVO {

    /**
     * 手机号
     */
    @Pattern(regexp = "^(1[3-9]\\d{9}|0\\d{9,10})$", message = "手机号格式不正确")
    private String phone;

    /**
     * 邮箱
     */
    @Email(message = "邮箱格式不正确")
    private String email;


    /**
     * 用户密码
     */
    @NotEmpty(message = "密码不得为空")
    private String password;
}
